package cn.edu.zafu.bigdata.mahuilin;

// 父类 Animal
class Animal {
    public void makeSound() {
        System.out.println("Animal sound");
    }
}

// 子类 Dog 继承自 Animal
class Dog extends Animal {
    @Override
    public void makeSound() {
        System.out.println("Woof!");
    }
}

// 子类 Cat 继承自 Animal
class Cat extends Animal {
    @Override
    public void makeSound() {
        System.out.println("Meow!");
    }
}

